<template>
  <div class="article">
    <HmItem v-for="item in list" :key="item.id" :item="item"></HmItem>
  </div>
</template>

<script>
import { getList } from "@/api/user";

export default {
  name: "HmArticle",
  data() {
    return {
      list: [],
    };
  },
  methods: {
    async getList() {
      const res = await getList({
        current: 1,
        pageSize: 10,
      });

      this.list = res.data.data.rows;
    },
  },
  created() {
    this.getList();
  },
};
</script>

<style></style>
